/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.jctc.els.modules.biz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jctc.els.modules.biz.excel.ElssystemlogExcel;
import org.jctc.els.modules.biz.vo.LogApiVO;
import org.springblade.core.log.model.LogApi;
import org.springframework.web.bind.annotation.RequestParam;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 服务类
 *
 * @author Chill
 */
public interface ILogApiService extends IService<LogApi> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param logApi
	 * @return
	 */
	IPage<LogApiVO> selectLogApiPage(IPage<LogApiVO> page, LogApiVO logApi);

	LogApi selectById(@RequestParam("id") Long id);

	IPage<LogApi> selectAllPage(@RequestParam(value = "pageNum") Integer pageNum,
								@RequestParam(value = "pageSize") Integer pageSize,
								@RequestParam(value = "createdBy",required = false) String createdBy,
								@RequestParam(value = "logType",required = false) String logType,
								@RequestParam(value = "createTime",required = false) String createTime,
								@RequestParam(value = "createTime") Long customerId);

	IPage<LogApi> selectAllPageOther(@RequestParam(value = "pageNum") Integer pageNum,
								@RequestParam(value = "pageSize") Integer pageSize,
								@RequestParam(value = "createdBy",required = false) String createdBy,
								@RequestParam(value = "logType",required = false) String logType,
								@RequestParam(value = "createTime",required = false) String createTime);

//导出
	List<ElssystemlogExcel> ExportPage(Wrapper<LogApi> queryWrapper);

	//	导入
	void importSystemlog(MultipartFile multipartFile, HttpServletRequest request);

}
